package com.guiguli.ExtendsDemo;

public class Student extends Person {

    public Student(){
        //子类构造方法中隐藏super()去访问父类的无参构造
        //super();

        System.out.println("子类的无参构造");
    }

    public Student(String name,int age){
        super(name,age);    //显性调用父类的有参构造
        System.out.println("子类的有参构造");
    }
}
